メインコンテンツへスキップ

All Posts

News bits

Cloudflare Workers VPC Services (Beta) リリース

Cloudflare Workers VPC Services (Beta) が利用可能になった。Workersからプライベートネットワーク内のリソースに安全にアクセスできる。

VPC Servicesでは、Worker binding構文を使用して内部API、データベース、サービスへの安全な接続を作成できる。AWS、Azure、GCPなどの外部クラウドやオンプレミスのリソースにCloudflare Tunnelsを使用して接続可能。

js
export default {
  async fetch(request, env, ctx) {
    // Worker bindingを使用してAWS ECS上の内部APIにアクセス
    const response = await env.AWS_VPC_ECS_API.fetch("https://internal-host.example.com");
    return new Response();
  },
};

出展:Announcing Workers VPC Services (Beta)

Cloudflare Workers AssetsのJavaScript Content-Typeがtext/javascriptに変更

Cloudflare Workers AssetsのJavaScriptファイルのContent-Typeがapplication/javascriptからtext/javascriptに変更された。HTML Living Standardで推奨される標準的なMIMEタイプへの対応。

両方のMIMEタイプをサポートする主要ブラウザでは後方互換性があり、既存の動作に影響はない。次回のデプロイで反映される。

出展:Content type returned in Workers Assets for Javascript files is now text/javascript - Cloudflare Changelog

著者について

Hi there. I'm hrdtbs, a frontend expert and technical consultant. I started my career in the creative industry over 13 years ago, learning on the job as a 3DCG modeler and game engineer in the indie scene.

In 2015 I began working as a freelance web designer and engineer. I handled everything from design and development to operation and advertising, delivering comprehensive solutions for various clients.

In 2016 I joined Wemotion as CTO, where I built the engineering team from the ground up and led the development of core web and mobile applications for three years.

In 2019 I joined matsuri technologies as a Frontend Expert, and in 2020 I also began serving as a technical manager supporting streamers and content creators.

I'm so grateful to be working in this field, doing something that brings me so much joy. Thanks for stopping by.